package patterns.visitor;

/**
 * Created by thinkpad on 16-12-10.
 * 演示，使用ComputerPartDisplayVisitor来显示computer组件
 */
public class VisitorPatternDemo {
    public static void main(String[] args){
        ComputerPart part = new Computer();
        part.accept(new ComputerPartDisplayVisitor());
    }
}
